package com.wanggan.rmi.model;

import java.io.Serializable;

/**
 * @author wanggan
 */
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private Integer id;
    private String username;
    private Integer age;
    private String telNum;
    
    
    public User(Integer id, String username, Integer age, String telNum) {
        this.id = id;
        this.username = username;
        this.age = age;
        this.telNum = telNum;
    }
    
    public User(String username, Integer age, String telNum) {
        this.username = username;
        this.age = age;
        this.telNum = telNum;
    }
    
    @Override
    public String toString() {
        return "{id:" + id + ",username:" + username + ",age:" + age + ",telNum:" + telNum + "}";
    }
    
    public Integer getId() {
        return id;
    }
    
    public String getUsername() {
        return username;
    }
    
    public Integer getAge() {
        return age;
    }
    
    public String getTelNum() {
        return telNum;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    public void setAge(Integer age) {
        this.age = age;
    }
    
    public void setTelNum(String telNum) {
        this.telNum = telNum;
    }
}
